Skip to content

Conversation

@henryde
Copy link
Contributor

@henryde henryde commented Nov 17, 2025

No description provided.

@henryde henryde requested review from Copilot, j0g3sc and nroi November 17, 2025 12:27
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request adds comprehensive metering configuration support across all platform types (AWS, Azure, AKS, GCP, Kubernetes, OpenShift) in the Terraform provider. The changes enable users to configure platform-level metering settings including processing configurations, access credentials, and platform-specific metering parameters.

Key changes:

  • Added metering configuration schemas for all supported platform types with processing options (timeline compaction and raw data deletion)
  • Refactored platform configuration types into separate files for better code organization
  • Updated secret obfuscation handling to support metering credentials alongside replication credentials

Reviewed Changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
internal/provider/schema_utils.go Modified meshProjectRoleAttribute to accept a computed parameter for flexible usage across resource and data source schemas
internal/provider/platform_resource_schema_*.go New files defining platform-specific schemas for Kubernetes, GCP, Azure, AWS, and AKS with metering support
internal/provider/platform_resource.go Added shared meteringProcessingConfigSchema function and removed platform schemas moved to separate files
internal/provider/platform_data_source.go Added metering configuration schemas for data sources and updated meshProjectRoleAttribute calls
internal/provider/platform_resource_obfuscationhandling.go Extended secret obfuscation handling to support metering credentials
internal/provider/landingzone_resource.go Updated meshProjectRoleAttribute calls with computed parameter
internal/modifiers/platformtypemodifier/validate_single_platform.go Minor formatting improvements to error messages
docs/resources/platform.md Updated documentation with metering configuration examples and reorganized schema sections
docs/data-sources/platform.md Added metering configuration documentation for data sources
client/platform*.go Refactored platform configuration structs into separate files with proper typing
.github/.copilot-instructions.md Added guidelines for pointer and omitempty usage in data structures

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@henryde henryde force-pushed the feature/platform-metering-config branch from 3a232b4 to 4fa8d52 Compare November 17, 2025 12:28
@henryde henryde force-pushed the feature/platform-metering-config branch from 9397b29 to 0b717b0 Compare November 17, 2025 13:51
Copy link
Collaborator

@j0g3sc j0g3sc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I followed all the replication and metering config fields again and compared them to the kotlin definition.
Did a few tests locally as well and found no issue.

@henryde henryde merged commit 5299f2d into main Nov 19, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants